﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true"
    CodeBehind="EditAdmin.aspx.cs" Inherits="EmployeeCheckIn.EditAdmin" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
    <style type="text/css">
        .style1
        {
            width: 100%;
            height: 214px;
        }
        .style6
        {
            height: 23px;
        }
        .style7
        {
            width: 559px;
        }
        .style19
        {
            height: 19px;
        }
        .style21
        {
            width: 355px;
            height: 20px;
        }
        .style23
        {
            width: 559px;
            height: 20px;
        }
        .style27
        {
            width: 559px;
            height: 23px;
        }
        .style30
        {
            height: 23px;
            width: 355px;
        }
        .style31
        {
            width: 355px;
            height: 28px;
        }
        .style32
        {
            width: 559px;
            height: 28px;
        }
        .style33
        {
            width: 355px;
            height: 24px;
        }
        .style34
        {
            width: 559px;
            height: 24px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <table class="style1">
        <tr>
            <td bgcolor="White" class="style19" colspan="2" align="left" style="font-size: large;
                color: #000000">
                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                <br />
                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; แก้ไขข้อมูลส่วนตัว
            </td>
        </tr>
        <tr>
            <td align="right" class="style6" colspan="2">
                &nbsp;
            </td>
        </tr>
        <tr>
            <td align="right" class="style30" style="font-size: small; color: #000000">
                <span class="RedText">*</span>Username:
            </td>
            <td class="style27">
                <asp:TextBox ID="txtUserName" runat="server" Width="195px"></asp:TextBox>
                <asp:Label ID="Label1" runat="server" Text="*กรุณากรอกชื่อเข้าใช้ในระบบ" ForeColor="Red"
                    Visible="False"></asp:Label>
                <asp:Label ID="lbWarnHaveUser" runat="server" Text="*ชื่อนี้มีผู้ใช้แล้ว" ForeColor="Red"
                    Visible="False"></asp:Label>
            </td>
        </tr>
        <tr>
            <td align="right" class="style30" style="font-size: small; color: #000000">
                <span class="RedText">*</span>ชื่อ:
            </td>
            <td class="style7">
                <asp:TextBox ID="txtAdminName" runat="server" Width="195px"></asp:TextBox>
                <asp:Label ID="lbWarnAdminName" runat="server" Text="*กรุณากรอกชื่อ" ForeColor="Red"
                    Visible="False"></asp:Label>
            </td>
        </tr>
        <tr>
            <td align="right" class="style30" style="font-size: small; color: #000000">
                <span class="RedText">*</span>นามสกุล:</td>
            <td class="style7">
                <asp:TextBox ID="txtAdminLastName" runat="server" Width="195px"></asp:TextBox>
                <asp:Label ID="lbWarnlsn" runat="server" ForeColor="Red" Text="*กรุณากรอกนามสกุล"
                    Visible="False"></asp:Label>
            </td>
        </tr>
        <tr>
            <td align="right" class="style30"  style="font-size: small; color: #000000">
                โทรศัพท์:</td>
            <td class="style27">
                <asp:TextBox ID="txtPhone" runat="server" Width="195px"></asp:TextBox>
                <asp:Label ID="lbWarnPhone" runat="server" ForeColor="Red" Text="*กรุณากรอกหมายเลยโทรศัพท์เฉพาะตัวเลขเท่านั้น"
                    Visible="False"></asp:Label>
            </td>
        </tr>
        <tr>
            <td align="right" class="style30" dir="rtl" style="font-size: small; color: #000000">
                &nbsp;
            </td>
            <td align="char" class="style27">
                &nbsp;&nbsp;&nbsp;
                <asp:Button ID="btChangeName" runat="server" OnClientClick="return confirm('ยืนยันการแก้ไขข้อมูล?');return false;"
                    Text="บันทึก" OnClick="btChangeName_Click" Width="90px" />
                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                <asp:Button ID="Button4" runat="server" Text="รีเซ็ต" OnClick="Button4_Click" Width="50px" />
            </td>
        </tr>
        <tr>
            <td align="right" class="style6" colspan="2" dir="rtl" style="font-size: small; color: #000000">
                <hr style="margin-left: 0px" />
            </td>
        </tr>
         <tr>
            <td bgcolor="White" class="style19" colspan="2" align="left" style="font-size: large;
                color: #000000">
                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                <br />
                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; เปลี่ยนรหัสผ่าน
            </td>
        </tr>
        <tr>
            <td align="right" class="style30"  style="font-size: small; color: #000000">
                <span class="RedText">*</span>รหัสผ่านเดิม: </td>
            <td class="style7">
                <asp:TextBox ID="txtOldPass" runat="server" Width="200px" TextMode="Password"></asp:TextBox>
                <asp:Label ID="lbWrnOldpass" runat="server" ForeColor="Red" Text="รหัสไม่ถูกต้อง"
                    Visible="False"></asp:Label>
            </td>
        </tr>
        <tr>
            <td align="right" class="style31" style="font-size: small; color: #000000">
                <span class="RedText">*</span>รหัสผ่านใหม่:
            </td>
            <td class="style32">
                <asp:TextBox ID="txtNewpass" runat="server" TabIndex="1" Width="200px" TextMode="Password"></asp:TextBox>
                <asp:Label ID="lbWarnNum" runat="server" ForeColor="Red" Text="รหัสต้องมากกว่า 8 ตัวอักษร"
                    Visible="False"></asp:Label>
            </td>
        </tr>
        <tr>
            <td align="right" class="style33" style="font-size: small; color: #000000">
                <span class="RedText">*</span>ยืนยันรหัสผ่าน:
            </td>
            <td class="style34">
                <asp:TextBox ID="txtComfirmPass" runat="server" TabIndex="2" Width="198px" TextMode="Password"></asp:TextBox>
                <asp:Label ID="lbWrnNewpass" runat="server" ForeColor="Red" Text="ยืนยันรหัสผ่านใหม่ไม่ถูกต้อง"
                    Visible="False"></asp:Label>
            </td>
        </tr>
        <tr>
            <td align="right" class="style21">
                &nbsp;
            </td>
            <td class="style23">
                <asp:Button ID="btsumitChange" runat="server" OnClientClick="return confirm('ยืนยันการแก้ไขข้อมูล?');return false;"
                    OnClick="btsumitChange_Click" Style="margin-left: 16px;" Text="บันทึก" Width="90px" />
                <asp:Button ID="Button2" runat="server" Style="margin-left: 33px" Text="รีเซ็ต" OnClick="Button2_Click"
                    Width="50px" />
            </td>
        </tr>
        <tr>
            <td align="left" class="style21">
                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                </td>
            <td class="style23">
                &nbsp;
            </td>
        </tr>
    </table>
</asp:Content>
